package idazkaria;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;

import com.toedter.calendar.JCalendar;

public class EI_Hitzordua_editatu_aukeratu_pantaila_1_3_6 extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EI_Hitzordua_editatu_aukeratu_pantaila_1_3_6 frame = new EI_Hitzordua_editatu_aukeratu_pantaila_1_3_6();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public EI_Hitzordua_editatu_aukeratu_pantaila_1_3_6() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 391, 348);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblHitzorduak = new JLabel("HITZORDUAK:");
		lblHitzorduak.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblHitzorduak.setBounds(25, 24, 142, 14);
		contentPane.add(lblHitzorduak);
		
		JLabel lblAgenda = new JLabel("Agenda");
		lblAgenda.setBounds(25, 63, 46, 14);
		contentPane.add(lblAgenda);
		

		//egutegia panel batean sartu dut. AGENDA etiketa azpian jartzeko, setBounds metodoaren zenbakiak aldatu ditut.
		JPanel calendar=new JPanel();
		calendar.setBounds(65, 64, 251, 183);
		this.contentPane.add(calendar);
		calendar.add(new JCalendar());
		
		JButton btnOk = new JButton("OK");
		btnOk.setBounds(86, 269, 89, 23);
		contentPane.add(btnOk);
		
		JButton btnAtzera = new JButton("Atzera");
		btnAtzera.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EI_Bezeroaren_informazioa_maneiatu_1_3 bat=new EI_Bezeroaren_informazioa_maneiatu_1_3();
				bat.setVisible(true);
				EI_Hitzordua_editatu_aukeratu_pantaila_1_3_6.this.setVisible(false);}
			});
		btnAtzera.setBounds(185, 269, 89, 23);
		contentPane.add(btnAtzera);
	}

}
